home *** CD-ROM | disk | FTP | other *** search
- #!/sbin/sh
- #
- # Copyright (C) 1998, Silicon Graphics, Inc.
- # All Rights Reserved.
- #
- # UNPUBLISHED -- Rights reserved under the copyright laws of the United
- # States. Use of a copyright notice is precautionary only and does not
- # imply publication or disclosure.
- #
- # THIS SOFTWARE CONTAINS CONFIDENTIAL AND PROPRIETARY INFORMATION OF
- # SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION, DISTRIBUTION, OR
- # DISCLOSURE IS STRICTLY PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN
- # PERMISSION OF SILICON GRAPHICS, INC.
- #
- # U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND
- # Use, duplication or disclosure by the Government is subject to
- # restrictions as set forth in FAR 52.227.19(c)(2) or subparagraph
- # (c)(1)(ii) of the Rights in Technical Data and Computer Software
- # clause at DFARS 252.227-7013 and/or in similar or successor clauses
- # in the FAR, or the DOD or NASA FAR Supplement. Unpublished-- rights
- # reserved under the copyright laws of the United States.
- # Contractor/manufacturer is Silicon Graphics, Inc.,
- # 2011 N. Shoreline Blvd., Mountain View, CA 94039-7311.
- #
- #
- # Exitop for Cluster Administration Services: this script should be executed
- # by inst/swmgr after installing CAS. It sets up the initial CDB if necessary.
- # This exitop is part of cluster_admin product
- #
- # "$Id: cdb-exitop,v 1.10 1999/11/10 01:52:32 fbdp Exp $"
-
- BINDIR=${rbase:-}/usr/cluster/bin
-
- CDB_DB_DIR=$rbase/var/cluster/cdb
- CDB_DB=$CDB_DB_DIR/cdb.db
- export CDB_DB
-
- #
- # If the CDB does not exist, create default CDB header and basic nodes.
- #
- if [ ! -f $CDB_DB ]; then
- mkdir -p $CDB_DB_DIR
- $BINDIR/cdbnew $CDB_DB
- fi
-
- #
- # Stop cmond process. Do not check for errors. cmond process might have
- # exited when new binaries are installed.
- #
- ${rbase}/etc/killall -9 cmond > /dev/null 2>&1
-
- ${rbase}/sbin/chkconfig cluster on;
-
- #
- # Start cmond process
- #
- #
- # CAD uses lots of file descriptors. Not all file
- # descriptors are open at the same time.
- #
- limit descriptors 2500
- if [ -f /etc/config/cmond.options ]; then
- $BINDIR/cmond `cat /etc/config/cmond.options`
- else
- $BINDIR/cmond
- fi
-
- if [ $? -ne 0 ]; then
- echo "cmond process could not be started"
- echo "Please run /etc/init.d/cluster start after installation"
- fi
-
- if grep -q -e '^sgi-cad[ ]' /etc/services; then
- # 'sgi-cad' entry is already defined.
- :
- else
- echo
- echo "\t" "* * * * * * * * * * I M P O R T A N T * * * * * * * * * * * * *"
- echo
- echo "\t" "\"sgi-cad\" service MUST be added to /etc/services. Restart cluster"
- echo "\t" "processes after adding the entry. Failure to do so will cause"
- echo "\t" "cluster and CXFS/FailSafe services to function incorrectly. "
- echo "\t" "Please refer to the CXFS or FailSafe Administrator's Guide "
- echo "\t" "for more information."
- echo
- fi;
-
- #
- # Cluster admin group processes need not be explicitly started. They are
- # started when cmond is started (AUTOACTION variable for cluster_admin
- # process group is "start").
- #
-
- exit 0;
-